/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2022-11-04
 * Time: 12:51
 */
public class Test {
    public static void main(String[] args) {
        int a = 0xf;
        System.out.printf("%x\n", ~a);
    }


    public static void main4(String[] args) {
        int a = 10;
        int b = 20;
        System.out.println(a & b);
    }


    public static void main3(String[] args) {
        int a = 1;
        int b = 2;
        System.out.println(a==1 & b==2);
        System.out.println(a==2 & b==2);
        System.out.println(a==2 | b==2);
        System.out.println(a==2 | b==1);
    }


    public static void main2(String[] args) {
        int a = 1;
        int b = 2;

        System.out.println(a==10 || (1/0)==0);
    }



    public static void main1(String[] args) {
        int a = 1;
        int b = 2;

        System.out.println(a==1 && (1/0)==0);
    }
}
